import time

def create_timestamp(rule = '%Y-%m-%d %H:%M:%S'):
  return time.strftime(rule, time.localtime(time.time()))
